package com.orange.core.pojo.entity.token;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.orange.core.pojo.entity.ICreateModel;
import com.orange.core.pojo.entity.IIntIdModel;
import lombok.Data;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

@Data
@Accessors(chain = true)
public class AccessToken implements IIntIdModel<AccessToken>, ICreateModel<AccessToken> {

    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer operatorId;
    private Integer operatorType;
    private String token;
    private LocalDateTime createTime;
    @TableField(fill = FieldFill.INSERT)
    private Integer createBy;
}
